package com.yc.navy.goods.bean;

public class ProductInfo {
	private long pid;
	private String pname;
	private Integer tid;
	private Double price;
	private String intro;
	private String pics;
	private Integer bnum;
	private String unit;
	private String bsize;
	private String bcolor;
	private String type;
	private String model;
	private String time;
	private Integer sid;
	private long collectnum;
	private Integer bid;
	private Integer pstatus;

	@Override
	public String toString() {
		return "ProductInfo [pid=" + pid + ", pname=" + pname + ", tid=" + tid + ", price=" + price + ", intro=" + intro
				+ ", pics=" + pics + ", bnum=" + bnum + ", unit=" + unit + ", bsize=" + bsize + ", bcolor=" + bcolor
				+ ", type=" + type + ", model=" + model + ", time=" + time + ", sid=" + sid + ", collectnum="
				+ collectnum + ", bid=" + bid + ", pstatus=" + pstatus + "]";
	}

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Integer getTid() {
		return tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getPics() {
		return pics;
	}

	public void setPics(String pics) {
		this.pics = pics;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getBnum() {
		return bnum;
	}

	public void setBnum(Integer bnum) {
		this.bnum = bnum;
	}

	public String getBsize() {
		return bsize;
	}

	public void setBsize(String bsize) {
		this.bsize = bsize;
	}

	public String getBcolor() {
		return bcolor;
	}

	public void setBcolor(String bcolor) {
		this.bcolor = bcolor;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public long getCollectnum() {
		return collectnum;
	}

	public void setCollectnum(long collectnum) {
		this.collectnum = collectnum;
	}

	public Integer getBid() {
		return bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public Integer getPstatus() {
		return pstatus;
	}

	public void setPstatus(Integer pstatus) {
		this.pstatus = pstatus;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bcolor == null) ? 0 : bcolor.hashCode());
		result = prime * result + ((bid == null) ? 0 : bid.hashCode());
		result = prime * result + ((bnum == null) ? 0 : bnum.hashCode());
		result = prime * result + ((bsize == null) ? 0 : bsize.hashCode());
		result = prime * result + (int) (collectnum ^ (collectnum >>> 32));
		result = prime * result + ((intro == null) ? 0 : intro.hashCode());
		result = prime * result + ((model == null) ? 0 : model.hashCode());
		result = prime * result + ((pics == null) ? 0 : pics.hashCode());
		result = prime * result + (int) (pid ^ (pid >>> 32));
		result = prime * result + ((pname == null) ? 0 : pname.hashCode());
		result = prime * result + ((price == null) ? 0 : price.hashCode());
		result = prime * result + ((pstatus == null) ? 0 : pstatus.hashCode());
		result = prime * result + ((sid == null) ? 0 : sid.hashCode());
		result = prime * result + ((tid == null) ? 0 : tid.hashCode());
		result = prime * result + ((time == null) ? 0 : time.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		result = prime * result + ((unit == null) ? 0 : unit.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductInfo other = (ProductInfo) obj;
		if (bcolor == null) {
			if (other.bcolor != null)
				return false;
		} else if (!bcolor.equals(other.bcolor))
			return false;
		if (bid == null) {
			if (other.bid != null)
				return false;
		} else if (!bid.equals(other.bid))
			return false;
		if (bnum == null) {
			if (other.bnum != null)
				return false;
		} else if (!bnum.equals(other.bnum))
			return false;
		if (bsize == null) {
			if (other.bsize != null)
				return false;
		} else if (!bsize.equals(other.bsize))
			return false;
		if (collectnum != other.collectnum)
			return false;
		if (intro == null) {
			if (other.intro != null)
				return false;
		} else if (!intro.equals(other.intro))
			return false;
		if (model == null) {
			if (other.model != null)
				return false;
		} else if (!model.equals(other.model))
			return false;
		if (pics == null) {
			if (other.pics != null)
				return false;
		} else if (!pics.equals(other.pics))
			return false;
		if (pid != other.pid)
			return false;
		if (pname == null) {
			if (other.pname != null)
				return false;
		} else if (!pname.equals(other.pname))
			return false;
		if (price == null) {
			if (other.price != null)
				return false;
		} else if (!price.equals(other.price))
			return false;
		if (pstatus == null) {
			if (other.pstatus != null)
				return false;
		} else if (!pstatus.equals(other.pstatus))
			return false;
		if (sid == null) {
			if (other.sid != null)
				return false;
		} else if (!sid.equals(other.sid))
			return false;
		if (tid == null) {
			if (other.tid != null)
				return false;
		} else if (!tid.equals(other.tid))
			return false;
		if (time == null) {
			if (other.time != null)
				return false;
		} else if (!time.equals(other.time))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		if (unit == null) {
			if (other.unit != null)
				return false;
		} else if (!unit.equals(other.unit))
			return false;
		return true;
	}
}
